﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ChangeSIM.aspx.vb" Inherits="ccapps.ChangeSIMScreen" %>

<!DOCTYPE html>
<HTML>
	<HEAD>
		<title>Change SIM Screen</title>
	
  <style type="text/css">.solbaslik { BACKGROUND-COLOR: #e6e6fa; PADDING-LEFT: 10px; FONT-FAMILY: Arial, Helvetica; COLOR: #000000; FONT-SIZE: 12px; BORDER-TOP: #dfdfdf 1px solid; TEXT-DECORATION: none }
	.solbaslik_dark { BACKGROUND-COLOR: #ccccff; PADDING-LEFT: 10px; FONT-FAMILY: Arial, Helvetica; COLOR: #000000; FONT-SIZE: 12px; BORDER-TOP: #dfdfdf 1px solid; TEXT-DECORATION: none }
	.input { BACKGROUND-COLOR: #f5f5f5; PADDING-LEFT: 10px; FONT-FAMILY: Arial, Helvetica; COLOR: #000000; FONT-SIZE: 12px; BORDER-TOP: #dfdfdf 1px solid; BORDER-RIGHT: #dfdfdf 1px solid; TEXT-DECORATION: none }
	.prompt { BACKGROUND-COLOR: #a2547f; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; padding-top:14px; FONT-FAMILY: Arial, Helvetica, sans-serif; HEIGHT: 30px; COLOR: #ffffff; FONT-SIZE: 12px; FONT-WEIGHT: bold; TEXT-DECORATION: none; width:899px; }
    .yenibaslik { BACKGROUND-COLOR: #3d3131; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: #efe3e3; FONT-SIZE: 12px; BORDER-TOP: #dfdfdf 1px solid; TEXT-DECORATION: none }
        .enusalan { BACKGROUND-COLOR:#930051; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; padding-top:14px; FONT-FAMILY: Arial, Helvetica, sans-serif; HEIGHT: 30px; COLOR: #ffffff; FONT-SIZE: 12px; FONT-WEIGHT: bold; TEXT-DECORATION: none;
            width: 899px;
        }


        .button02 {
		border: 2px none #e6e6fa;
          font-family: Verdana, Arial; 
		    font-size : 12px; 
		    font-weight : bold;
		    color: #336699;
		    padding : 3px;
		    text-align:center;
		    text-decoration: none;
            float: right; 
            border-radius:5px; 
            height:30px; 
            width:150px;
}
		     .auto-style1 {
                 BACKGROUND-COLOR: #e6e6fa;
                 PADDING-LEFT: 10px;
                 FONT-FAMILY: Arial, Helvetica;
                 COLOR: #000000;
                 FONT-SIZE: 12px;
                 BORDER-TOP: #dfdfdf 1px solid;
                 TEXT-DECORATION: none;
                 width: 109px;
             }
		     .auto-style2 {
                 BACKGROUND-COLOR: #e6e6fa;
                 PADDING-LEFT: 10px;
                 FONT-FAMILY: Arial, Helvetica;
                 COLOR: #000000;
                 FONT-SIZE: 12px;
                 BORDER-TOP: #dfdfdf 1px solid;
                 TEXT-DECORATION: none;
                 height: 28px;
             }
             .auto-style3 {
                 BACKGROUND-COLOR: #f5f5f5;
                 FONT-FAMILY: Arial, Helvetica;
                 COLOR: #000000;
                 FONT-SIZE: 12px;
                 BORDER-TOP: #dfdfdf 1px solid;
                 BORDER-RIGHT: #dfdfdf 1px solid;
                 TEXT-DECORATION: none;
                 height: 28px;
             }
		     .auto-style4 {
                 BACKGROUND-COLOR: #e6e6fa;
                 PADDING-LEFT: 10px;
                 FONT-FAMILY: Arial, Helvetica;
                 COLOR: #000000;
                 FONT-SIZE: 12px;
                 BORDER-TOP: #dfdfdf 1px solid;
                 TEXT-DECORATION: none;
                 height: 29px;
             }
                  .text-alan { 
            -webkit-box-shadow: 1px 0 2px black;
            -moz-box-shadow: 1px 0 2px black;
             box-shadow: 1px 0 2px black; 
             height:18px; 
             width:200px;  
             padding-top:8px;  
          
           
        }
		</style>


		
	   
	</HEAD>
	<body>
        
		<FORM id="Form1" method="post" runat="server">

            <asp:Label ID="LblErrorMessage" runat="server" ForeColor="Red"></asp:Label>
      <table style="width:910px" id="ChangeSimTable" >
            <tr>
               <td  class="prompt" colSpan="2"><asp:label id="lblContextHeader" runat="server"  > MSISDN ve COID - ile arama yapılabilir. Müşteri bulununca yeni SIM kart ve satış temsilcisi bilgisi girilir   </asp:label></td>
               
            </tr>
            <tr>
               <td class="solbaslik" >CoID<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TB_COID" ErrorMessage="COID alanın doldurulması zorunludur" ValidationGroup="groupCOID" Font-Size="Large" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TB_COID" ErrorMessage="COID Sadece rakamlardan oluşur" ValidationExpression="^[0-9]+$" Font-Size="Large" ForeColor="Red" ValidationGroup="groupCOID">(*)</asp:RegularExpressionValidator>
                    
                </td>
                <td class="input"> <asp:Button ID="btnCOID" runat="server" Text="Doğrula" CssClass="button02" ValidationGroup="groupCOID"/>
                    <asp:TextBox ID="TB_COID" runat="server" CssClass="text-alan" onkeydown = "return (event.keyCode!=13)"></asp:TextBox>
                    
                    <br />
                    
                </td>
                
            </tr>
            <tr>
               <td class="solbaslik" >MSISDN
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TB_MSISDN" ErrorMessage="MSISDN alanın doldurulması zorunludur" ValidationGroup="groupMSISDN" Font-Size="Large" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TB_MSISDN" ErrorMessage="Format:5051234567" ValidationExpression="^[0-9]+$" Font-Size="Large" ValidationGroup="groupMSISDN" ForeColor="Red">(*)</asp:RegularExpressionValidator>
                </td>
                <td class="input"> <asp:Button ID="btnMSISDN" runat="server" Text="Doğrula" CssClass="button02" ValidationGroup="groupMSISDN"/>
                    <asp:TextBox ID="TB_MSISDN" runat="server" MaxLength="10" CssClass="text-alan" onkeydown = "return (event.keyCode!=13)"></asp:TextBox>
                    <br />
                </td>
                
            </tr>
          </table>

         <table id="GuncelBilgi" style="width:910px" runat="server" >
             <tr>
               <td  class="prompt" colSpan="2"><asp:label id="lblMusteriBilgileri" runat="server"  > Müşteri Bilgileri   </asp:label></td>
               
            </tr>
          <tr>
               <td class="auto-style1" >Abone</td>
                <td class="input"> 
                    <asp:Label ID="lblAbone" runat="server" Text=""></asp:Label>
                    <asp:Label ID="lblhidCO_ID" runat="server" Text=" " Visible="false"></asp:Label>
                </td>
                
            </tr>
          <tr>
               <td class="auto-style1" >Güncel SIM</td>
                <td class="input"> 
                    <asp:Label ID="lblGuncelSim" runat="server" Text=""></asp:Label>
                    <asp:Label ID="hiddenlblGuncelSim" runat="server" Text=" " Visible="False"></asp:Label>
                </td>
                
            </tr>
          <tr>
               <td class="auto-style1" >Güncel Satış Ortağı</td>
                <td class="input"> 
                    <asp:Label ID="lblGuncelSatisOrtagi" runat="server" Text=""></asp:Label>
                </td>
                
            </tr>
        </table>
           
             <TABLE style="width:910px" id="YeniSimTable"  runat="server">
				
                  <tr>
               <td  class="prompt" colSpan="2"><asp:label id="lblSimKart" runat="server"  > SIM Kart Geçmişi  </asp:label></td>
               
            </tr>

                 <tr>
               
                <td class="input" colspan="3"> 
                
 <asp:GridView ID="GridView2" runat="server"  AutoGenerateColumns="False" style="margin-top: 0px" Width="100%" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" AllowPaging="True" PageSize="30">
            <Columns>
                
      
                  <asp:BoundField DataField="cd_seqno" HeaderText="Sıra No " 
              SortExpression="cd_seqno">
                       
                     </asp:BoundField>
        <asp:BoundField DataField="sm_serialnum" HeaderText="ICC-ID" 
            SortExpression="sm_serialnum" />
        <asp:BoundField DataField="sm_status" HeaderText="Durum" 
            SortExpression="sm_status" />
                <asp:BoundField DataField="sm_status_mod_date" HeaderText="Tarih" 
            SortExpression="sm_status_mod_date"  />
                 <asp:BoundField DataField="dealer_id" HeaderText="Bayii ID" 
            SortExpression="dealer_id"  />
                
                 <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text="Label" ></asp:Label>
                   
                </ItemTemplate>
                      <HeaderTemplate>
               Bayii Adı
         </HeaderTemplate>


                </asp:TemplateField>
                 <asp:TemplateField>
                <ItemTemplate>
                    
                    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                      <HeaderTemplate>
               Bayii Şehir
         </HeaderTemplate>


                </asp:TemplateField>
                   <asp:BoundField DataField="CD_USERLASTMOD" HeaderText="Kullanıcı" 
            SortExpression="CD_USERLASTMOD"  />
                  <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                      <HeaderTemplate>
               Kullanıcı Adı
         </HeaderTemplate>


                </asp:TemplateField>
                  
    </Columns>

            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#a2547f" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerSettings Mode="NumericFirstLast" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left"/>
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
                
                    <!--
                 <asp:datagrid id="DG_SimHistoryTable" runat="server"  AutoGenerateColumns="False" Width="896px" >
				<FooterStyle Font-Size="11px" Font-Names="Arial" ForeColor="White" BackColor="#A2547F"></FooterStyle>
				<ItemStyle Font-Size="11px" Font-Names="Arial" BackColor="Lavender"></ItemStyle>
				<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
				<Columns>
					
					<asp:BoundColumn DataField="cd_seqno" HeaderText="Sıra No">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
					<asp:BoundColumn DataField="sm_serialnum" HeaderText="ICC-ID">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
					<asp:BoundColumn DataField="sm_status" HeaderText="Durum">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
					<asp:BoundColumn DataField="sm_status_mod_date" HeaderText="Tarih" DataFormatString="{0:dd.MM.yyyy}">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
                    <asp:BoundColumn DataField="dealer_id" HeaderText="Bayii ID">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>	
					</asp:BoundColumn>
               
                    <asp:BoundColumn DataField="CD_USERLASTMOD" HeaderText="Kullanıcı">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>	
					</asp:BoundColumn>
                   
                    
				</Columns>
				<PagerStyle Font-Size="11px" Font-Names="Arial" HorizontalAlign="Right" ForeColor="White" BackColor="#A2547F"
					Mode="NumericPages"></PagerStyle>
			</asp:datagrid>

                    -->
                </td>
                
            </tr>
         
				<TR>
					<TD class="solbaslik" width="140">SIM Kart Değişiklik Nedeni</TD>
					<TD class="input">
                        <asp:DropDownList ID="DDL_ChangeReason" runat="server" Height="26px" Width="235px">
                        </asp:DropDownList>
                    </TD>
				</TR>
                <TR>
					<TD class="solbaslik" width="140">Tekrar Kullanım Biçimi</TD>
					<TD class="input">
                        <asp:DropDownList ID="DDL_TekrarKullanım" runat="server" Height="26px" Width="235px">
                            <asp:ListItem Selected="True" Value="1">Bekleme Süresinden Sonra Kullan</asp:ListItem>
                            <asp:ListItem Value="2">Hemen Bayii Kaynaklarına Gönder</asp:ListItem>
                            <asp:ListItem Value="3">Hemen Kaynak Havuzuna Gönder</asp:ListItem>
                        </asp:DropDownList>
                    </TD>
				</TR>
                <TR>
					<TD class="solbaslik" width="140">Yeni SIM
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TB_YeniSIM" ErrorMessage="Yeni SIM alanın doldurulması zorunludur" ValidationGroup="groupGonder" Font-Size="Large" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    
                    </TD>
					<TD class="input">
                        <asp:TextBox ID="TB_YeniSIM" runat="server" CssClass="text-alan" MaxLength="20"></asp:TextBox>
                    
                    </TD>
				</TR>
				<TR>
					<TD class="auto-style2"  width="140">Yeni Satış Ortağı
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TB_YeniSatisOrtagi" ErrorMessage="Yeni Satış Ortağı alanın doldurulması zorunludur" ValidationGroup="groupGonder" Font-Size="Large" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    
                    </TD>
					<TD class="auto-style3">
                        &nbsp;&nbsp;&nbsp;<asp:TextBox ID="TB_YeniSatisOrtagi" runat="server" CssClass="text-alan" MaxLength="32" AutoPostBack="True"></asp:TextBox>
                    
                    </TD>
				</TR>
				
				<TR>
					<TD class="auto-style4"  colspan="2">
                      
                     <asp:button id="btnGonder" runat="server" Width="60px" Text="Gonder" CssClass="button02" Height="26px" ValidationGroup="groupGonder"></asp:button>
                       
					</TD>
                  
					
				</TR>
                <TR>
					<TD class="solbaslik"  colspan="2">

<asp:label id="cevap" runat="server" Width="608px" Font-Size="10pt" ForeColor="#C00000" Font-Bold="True"
				Font-Names="Tahoma" Height="14px" ></asp:label>		
                        </TD>			
				</TR>
			</TABLE>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="groupCOID" />
            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="groupMSISDN" />
            <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="groupGonder" />
</FORM>
	</body>
    </HTML>
